home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Extensions… / Extension Shell ƒ / Extension.make < prev    next >
Encoding:
Text File  |  1995-04-10  |  1.3 KB  |  50 lines  |  [TEXT/MPS ]

  1. #    File:        Extension.make
  2. #   Target:     Extension
  3. #   Sources:    Extension.a Extension.c Extension.r
  4. #   Created:    Wednesday, Nov. 11, 1992 6:42:32 PM
  5. #
  6. #    Makefile for a printing extension.
  7. #    
  8. #    Dave Hersey
  9. #    Apple Developer Technical Support
  10. #
  11. #    12/01/92 - dmh - Created.
  12. #     4/26/93 - dmh - Updated to use recommended approach to
  13. #                     global data initialization.
  14. #     9/05/93 - dmh - Updated for b2.
  15. #   12/18/93 - dmh - Updated for b3.
  16. #    8/24/94 - dmh - Finalized.
  17.  
  18. #    Alias to the path for the GX library and interface files.
  19.  
  20. INTPATH = {CIncludes}
  21.  
  22. #    Creator type we'll use:
  23.  
  24. kCreator = 'GExt'
  25.  
  26.  
  27. OBJECTS = Extension.a.o Extension.c.o
  28. AsmOptions        = -sym off -i "{INTPATH}" -case obj
  29. CompileOptions    = -opt full -d applec -b2 -r -i "{INTPATH}"
  30.  
  31. Extension.a.o ƒ Extension.make Extension.a
  32.      Asm {AsmOptions} Extension.a
  33. Extension.c.o ƒ Extension.make Extension.c
  34.      C {CompileOptions} Extension.c
  35.  
  36. Extension ƒƒ Extension.make Extension.r {OBJECTS}
  37.     Link    -ra =resSysHeap,resPurgeable    ∂
  38.             -t 'pext'                        ∂
  39.             -c {kCreator}                    ∂
  40.             -rt pext=0                        ∂
  41.             -sg SEGS                        ∂
  42.             -m EntryPoint                    ∂
  43.             {OBJECTS}                        ∂
  44.             "{Libraries}Runtime.o"            ∂
  45. #            "{Libraries}Interface.o"        ∂
  46. #            "{CLibraries}StdClib.o"            ∂
  47.             -o Extension;
  48.     SetFile Extension -a iB;
  49.     Rez -i "{INTPATH}" -rd -o Extension Extension.r -append 
  50.